//
//
//  Created by longma on 2018/7/31.
//  Copyright © 2018年 XLH. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "UserModel.h"

@interface UserManager : NSObject

+ (instancetype)shared;

@property (nonatomic, strong) UserModel *userModel;

@property (nonatomic, strong) NSString *userToken;

/// 保存用户数据
- (void)saveUserInfo:(NSDictionary *)data;

- (void)saveUserInfoModel:(UserModel *)userModel;

/// 初始化用户数据
- (void)initUserInfo;

/// 退出登录
- (void)logout;

@end
